package game.core
{
	public class NetWorkManager
	{
		private static var _instance:NetWorkManager;
		private var _protocolReturnsHandler:Function;
		private var _connectSuccesfullyHandler:Function;
		private var _connectFaultHandler:Function;
		public function NetWorkManager()
		{
			
		}
		
		public static function getInstance():NetWorkManager
		{
			if (!_instance)
				_instance = new NetWorkManager();
			return _instance;
		}
		
		public function sendMsg(value:ProtocolData):void
		{
			
		}
		
		public function connect(host:String, port:int):void
		{
			
		}
		
		public function setProtocolReturnsHandler(value:Function):void
		{
			_protocolReturnsHandler = value;
		}
		
		public function setConnectSuccesfullyHandler(value:Function):void
		{
			_connectSuccesfullyHandler = value;
		}
		
		public function setConnectFaultHandler(value:Function):void
		{
			_connectFaultHandler = value;
		}
	}
}